<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	fullLotNos		= Request("fullLotNo")
	lotSubNo		= Request("lotSubNo")
	processRank		= Request("processRank")
	
	If processRank <> "" Then 
		divProcRank = Split(processRank,"_")
		processCd = divProcRank(0)
		rank = divProcRank(1)
	End If 
	
	SQLTitle = "-- ■■■■ 공정 메모 정보 ■■■■"
	
	SQL = "SELECT orderMemo " & _
		  "FROM tblOrderMemo " & _
		  "WHERE flag='Y' AND lotYear+lotNo='" & fullLotNos & "' AND lotSubNo=" & lotSubNo & " AND processCd='" & processCd & "' AND rank=" & rank

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

	Set Rs=Server.CreateObject("ADODB.RecordSet")
	Rs.open SQL, DbCon, 1
	
	Response.write "<MemoDetail>" & vbcrlf

	If Rs.eof Or Rs.bof Then 
	Else 
		Do Until Rs.eof Or Rs.bof

				Call mkXMLNode("orderMemo", rs("orderMemo"), 1)

		Rs.movenext
		Loop 
	End If
	Response.write "</MemoDetail>" & vbcrlf
'	Call rsWithXML("Save OK!")
%>